package com.example.lib_image.glide.picasso

import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.widget.ImageView
import com.squareup.picasso.Picasso
import jp.wasabeef.picasso.transformations.CropCircleTransformation

class PicassoImgLoader {
    fun loadUrlImage(url: String, iv: ImageView) {
        Picasso.get().load(url)
            .placeholder(ColorDrawable(Color.GRAY))
            .error(ColorDrawable(Color.YELLOW))
            .transform(CropCircleTransformation())
            .into(iv)
    }
    //没有磁盘缓存策略
}